package day15.tarena.com;
public class TestCatch {
	public static void main(String[] args) {
		try{
			int a = 2;
			int b = 0;
			a = a/b;
		}catch(NullPointerException ee){
			ee.printStackTrace();
			System.out.println("处理方式1");
		}catch(NumberFormatException ne){
			System.out.println("处理方式2");
			ne.printStackTrace();
		}catch(ArithmeticException ab){
			ab.printStackTrace();
			System.out.println("正确的处理方案");
		}catch(Exception ioe){
			System.out.println("处理方式3");
			ioe.printStackTrace();
		}
		System.out.println("还是可以到这句话的S");
	}

}
